<?php
function error($error)
{
	$tmp = 64;
	$array = array(
		"1" => "Login is empty!",
		"2" => "Password is empty!",
		"4" => "Re-Password is empty!",
		"8" => "Code is empty!",
		"16" => "Login is busy!",
		"32" => "Re-Password dose not match!",
		"64" => "Code dose not match!"
		);
	$error = $error > ($tmp*2-1)?($tmp*2-1):$error;
	while (!empty($error))
	{
		if ($error >= $tmp)
		{
			$error = $error - $tmp;
			$str[] = $array[$tmp];
		}
		$tmp = $tmp / 2;
	}
	foreach ($str as $text)
	{
		echo $text."<br>";
	}
}
?>